<template>
  <a-card :bordered="false">
    <!-- 查询区域 -->
    <div class="table-page-search-wrapper">
      <a-form layout="inline" @keyup.enter.native="searchQuery">
        <a-row :gutter="24">
          <a-col :md="6" :sm="8">
            <a-form-item label="姓名">
              <a-input placeholder="请输入姓名" v-model="queryParam.xingMing"></a-input>
            </a-form-item>
          </a-col>
          <a-col :sm="24">
            <span style="float: right;overflow: hidden;" class="table-page-search-submitButtons">
              <a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
              <a-button
                type="primary"
                @click="searchReset"
                icon="reload"
                style="margin-left: 8px"
              >重置</a-button>
            </span>
          </a-col>
        </a-row>
      </a-form>
    </div>
    <!-- table区域-begin -->
    <div>
      <a-table
        ref="table"
        size="middle"
        bordered
        rowKey="id"
        :columns="columns"
        :dataSource="dataSource"
        :loading="loading"
        :pagination="ipagination"
        @change="handleTableChange"
      >
        <span slot="xingMing" slot-scope="text, record">
          <a
            style="color: #1890FF;cursor: pointer;"
            @click="handleDetail(record)"
          >{{record.xingMing}}</a>
        </span>
      </a-table>
    </div>
    <!-- table区域-end -->
    <gkakRJianKangXinXi-modal ref="modalForm" @ok="modalFormOk"></gkakRJianKangXinXi-modal>
  </a-card>
</template>

<script>
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
import GkakRJianKangXinXiModal from './modules/GkakRJianKangXinXiModal'
import { filterMultiDictText } from '@/components/dict/JDictSelectUtil'
export default {
  name: 'UsersList',
  mixins: [JeecgListMixin],
  components: {
    GkakRJianKangXinXiModal
  },
  data() {
    return {
      description: '人员详情',
      ids: '',
      // 表头
      columns: [
        {
          title: '序号',
          dataIndex: '',
          key: 'rowIndex',
          width: 80,
          align: 'center',
          customRender: function(t, r, index) {
            return parseInt(index) + 1
          }
        },
        {
          title: '姓名',
          dataIndex: 'xingMing',
          align: 'center',
          scopedSlots: { customRender: 'xingMing' }
        },
        {
          title: '身份证号',
          dataIndex: 'shenFenZhengHao',
          align: 'center'
        }
      ],
      url: {
        list: `/gkakKongJianController/queryPByFangJianId?fangJianId=${this.$route.query.id}`
      }
    }
  },
  created() {},
  computed: {
  }
}
</script>
<style scoped>
@import '~@assets/less/common.less';
</style>